-- CALC_CAVE_22_TARGET_CLASS

-- 计算元素洞窟的中心格子类型
return function()
    local elem_mine = { ["class"] = 113, ["ratio"] = 50 }; -- 元素矿脉
    local fountain  = { ["class"] = 114, ["ratio"] = 50 }; -- 魔法喷泉

    local arr = { elem_mine, fountain};

    -- 先过滤一遍
    DungeonInstanceM.filterInstanceGrids(arr);

    local seed = DungeonM.getRandSeed("CALC_CAVE_22_TARGET_CLASS");
    local info = fetchElemBySeed(arr, seed);

    return info["class"];
end
